//
//  MyComPlainModel.m
//  PropertyManager
//
//  Created by TNG on 2018/9/27.
//  Copyright © 2018年 Tng. All rights reserved.
//

#import "MyComPlainModel.h"

@implementation MyComPlainModel

+(instancetype)modelWithDic:(NSDictionary *)dic
{
    return [[self alloc] initWithDic:dic];
}

-(instancetype)initWithDic:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}

-(CGFloat)contentHeight
{
    CGFloat height = [_tsNr boundingRectWithSize:CGSizeMake(WIDTH - 40, MAXFLOAT) withTextFont:font(14)].height;
    return height;
}

@end
